package com.cn.jiyun.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.cn.jiyun.service.ScenicTicketsService;
import com.jiyun.entity.pojo.ScenicTickets;
import com.jiyun.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


import java.io.Serializable;
import java.util.List;

/**
 * (ScenicTickets)表控制层
 *
 * @author makejava
 * @since 2025-01-17 20:07:52
 */
@RestController
@RequestMapping("scenicTickets")
@Slf4j
public class ScenicTicketsController {


    @Autowired
    private ScenicTicketsService scenicTicketsService;

   @GetMapping("findAll")
    public Result<List<ScenicTickets>> findAll(@RequestParam(required = false) String scenicName,
                                               @RequestParam(required = false) String sort){
        return scenicTicketsService.findAll(scenicName,sort);
    }


}

